package com.yunji.baby.repayment.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yunji.baby.repayment.entity.TRepayment;
import com.yunji.baby.repayment.mapper.TRepaymentMapper;
import com.yunji.baby.repayment.service.TRepaymentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 研学旅行
 * @since 2020-02-13
 */
@Service
public class TRepaymentServiceImpl extends ServiceImpl<TRepaymentMapper, TRepayment> implements TRepaymentService {
    public List<TRepayment> getByBorrowId(String borrowId){
        QueryWrapper<TRepayment> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("borrow_id",borrowId);
        List<TRepayment> tRepaymentList = list(queryWrapper);
        return tRepaymentList;
    }
}
